import axiosInstance from "./index"

export function LoginPost(account: string, password: string) {
  return axiosInstance.post('/user/login', {
    account,
    password
  })
}

export function CreateUserPost(account: string, password: string) {
  return axiosInstance.post('/user/create', {
    account,
    password
  })
}

export function UserInfoGet() {
  return axiosInstance.get('/user/info')
}

export function LogoutGet() {
  return axiosInstance.get('/user/logout')
}